﻿<%@ Page Language="C#" MasterPageFile="~/Controls/AdminPage.master" AutoEventWireup="true" CodeFile="Partner.List.aspx.cs" Inherits="Pages_Partners_Partner_List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <article>
	<asp:Label ID="lblTtitle" runat="server" Text="Danh sách đối tác" CssClass="title"></asp:Label>
	<form>
			<div>
	            <asp:DropDownList ID="drpCompany" DataTextField="Alias" DataValueField="CompanyID" runat="server">
	            </asp:DropDownList>
	            <asp:TextBox ID="txtKeyWord" runat="server"></asp:TextBox>
			    <asp:Button ID="btView" runat="server" CssClass="button" OnClick="btView_Click" Text="Xem"></asp:Button>
			    <br /><br />
			</div>
		<table id="table1" class="gtable">
			<thead>
				<tr>
					<th>TT</th>
					<th>Họ tên</th>
					<th>Điện thoại</th>
					<th>Cơ quan</th>
					<th>Chức danh</th>
					<th>Email</th>
					<th>Ngày sinh</th>
				</tr>
			</thead>
			<tbody>
			    <asp:Repeater ID="rptList" runat="server">
			    <ItemTemplate>
				    <tr>
					    <td><%#Eval("rownumber")%></td>
					    <td><a href="<%=Constant.ADMIN_PATH %><%=Resources.Url.PartnerEdit %>?id=<%#Eval("PartnerID") %>&u=<%=HttpUtility.UrlEncode(Request.Url.ToString()) %>"><%#Eval("FullName")%></a></td>
					    <td><%#Eval("Mobile")%></td>
					    <td><%#Eval("CompanyName")%></td>
					    <td><%#Eval("Position")%></td>
					    <td><%#Eval("Email")%></td>
					    <td><%# Eval("Birthday", "{0:dd-MM-yyyy}")%></td>
				    </tr>
			    </ItemTemplate>
			    </asp:Repeater>
			</tbody>
		</table>
			<div class="pagination">
			    Page:
			    <asp:DropDownList ID="drpPage" runat="server">
			        <asp:ListItem>1</asp:ListItem>
			        <asp:ListItem>2</asp:ListItem>
			    </asp:DropDownList>
			    Size:
			    <asp:DropDownList ID="drpPageSize" runat="server">
			        <asp:ListItem>10</asp:ListItem>
			        <asp:ListItem>20</asp:ListItem>
			        <asp:ListItem Selected="True">30</asp:ListItem>
			        <asp:ListItem>50</asp:ListItem>
			        <asp:ListItem>100</asp:ListItem>
			    </asp:DropDownList>
			    <asp:Label ID="lblTotal" runat="server" Text="(0)"></asp:Label>
			    <asp:Button ID="btPage" CssClass="button small" runat="server" Width="50px" OnClick="btPage_Click" Text="Chuyển"></asp:Button>
			</div>
	</form>
</article>
</asp:Content>

